package com.bingxue.edu.management.education.model.resp;

import com.bingxue.edu.management.education.model.entity.ClassInfo;
import com.mybatisflex.annotation.RelationManyToOne;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 班级详情信息
 *
 * @author zq
 * @since 2024/08/25 00:02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "班级详情信息")
@TableRef(ClassInfo.class)
public class ClassDetailResp extends ClassInfoResp {

//    @RelationManyToOne(selfField = "prevClassId", targetTable = "edu_class_info", targetField = "id", valueField = "name")
//    private String prevClassName;

    @RelationManyToOne(selfField = "classTypeId", targetTable = "edu_class_type", targetField = "id", valueField = "name")
    private String classTypeName;

    @RelationManyToOne(selfField = "assistTeacherId", targetTable = "base_employee", targetField = "id", valueField = "name")
    private String assistTeacherName;
}
